package com.jp.study.model.page;

import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModelProperty;

public class Ordering {
    
	
    @ApiModelProperty(value = "排序字段")
    private String field;
    
    @ApiModelProperty(value = "排序类型 正序：asc 倒序：desc")
    @Pattern(regexp="(asc|desc)",message="数据格式不正确，请传入asc或desc")
    private String direction;

    public String getDirection() {
        return this.direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }
    
    
}

